package com.third.mapper;


import com.third.entity.InboundOrder;
import org.apache.ibatis.annotations.*;


@Mapper
public interface InBoundMap {
     @Insert("insert into inbound_order(order_date,supplier_id,brand_id,specification,quantity,price,permission) " +
             "values(#{orderDate},#{supplierId},#{brandId},#{specification},#{quantity},#{price},#{permission})")
     void insert(InboundOrder inboundOrder);
     
     @Update("update inbound_order set order_id=#{orderId}, order_date=#{orderDate},supplier_id=#{supplierId},brand_id=#{brandId},specification=#{specification},quantity=#{quantity},price=#{price},permission=#{permission} where order_id=#{orderId} ")
     void update(InboundOrder inboundOrder);

     @Delete("delete from inbound_order where order_id=#{orderId}")
     void delete(Integer orderId);
}
